<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta http-equiv="imagetoolbar" content="false">
    <link rel="stylesheet" href="./css/pubilc.css">
    <link rel="stylesheet" href="./frame/layui/css/layui.css">
    <link rel="stylesheet" href="./css/login/index.css">z`
    <title>登录</title>
</head>
<body οncοntextmenu="return false">
    <div class="loginFrame" id="loginFrame">
        <div class="mainPic">
            <img src="./images/login/mainPic.png"/>
        </div>
        <form class="layui-form login-form" action="">
            <div class="title">
                <h1>欢迎，</h1><span>登录尚德齿科医疗系统</span>
            </div>
            <transition mode="out-in" name=''>
                <!--登陆-->
                <div class="login" v-if='isLogin' key="login">
                    <div class="layui-form-item">
                        <label class="layui-form-label">用户名</label>
                        <div class="layui-input-inline">
                            <input type="text" name="title" required  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">密码</label>
                        <div class="layui-input-inline">
                            <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="PwdHandle">
                        <div class="layui-form-item">
                            <input type="checkbox" name="" title="记住密码" lay-skin="primary" checked>
                        </div>
                        <div class="forgetPwd">
                            <span @click='isLogin=!isLogin'>忘记密码？</span>
                        </div>
                    </div>
                    <div class="confirm">
                        <button type="reset" class="layui-btn layui-btn-primary" ay-filter="formDemo">取消</button>
                        <button class="layui-btn layui-btn-normal" >确认</button>
                    </div>
                </div>
                <!--修改密码-->
                <div class="modify" v-else key='modeify'>
                    <div class="layui-form-item">
                        <label class="layui-form-label">用户名</label>
                        <div class="layui-input-inline">
                            <input type="text" name="title" required  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">新密码</label>
                        <div class="layui-input-inline">
                            <input type="password" name="password" required lay-verify="required" placeholder="请输入新密码" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">确认密码</label>
                        <div class="layui-input-inline">
                            <input type="password" name="password" required lay-verify="required" placeholder="请确认密码" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">验证码</label>
                        <div class="layui-input-inline code">
                            <input type="number" name="number"  lay-verify="required" placeholder="请输入验证码" autocomplete="off" class="layui-input">
                            <button class="getCode">获取验证码</button>
                        </div>
                    </div>
                    <div class="confirm">
                        <button type="reset" class="layui-btn layui-btn-primary" ay-filter="formDemo" @click='isLogin=!isLogin'>取消</button>
                        <button class="layui-btn layui-btn-normal" >确认</button>
                    </div>
                </div>
            </transition>
        </form>
    </div>
</body>
<script src="./frame/layui/layui.js"></script>
<script src='./frame/jquery-2.1.4.min.js'></script>
<script src="./js/public.js"></script>
<script src="./frame/vue.js"></script>
<script src="./js/login/index.js"></script>
<script>
    var login = new Vue({
        el:'#loginFrame',
        data:{
            isLogin:true
        }
    })
</script>
</html>